package service;

import dao.saleMapper;
import entity.sale;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddSaleService {
    @Autowired
    private saleMapper saleMapper;

    public boolean addSale(sale sale){
        int insert = saleMapper.insert(sale);
        if(insert > 0){
            return true;
        }
        return false;
    }
}
